﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminList.aspx.cs" Inherits="AdminManagement_AdminList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理员列表</title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
    <script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script>
      <script src="../Js/tablehover.js" type="text/javascript"></script>
</head>
<body>
     <form id="form1" runat="server">
   <div style="margin-left: 5px">
     <div class="title">
            <div class="titleLeft">
                管理员列表</div>
        </div>
     <br style=" margin-top:3px" />    
     <div> <asp:Button ID="btnAdd" runat="server" Text="新增" CssClass="button" onclick="btnAdd_Click" /> </div>

  <br style="margin-top:3px" />
   <table class="tab_alt" style="width: 100%" cellpadding="0" cellspacing="0">
     <tr class="header">
     <td class="noWrapTD">操作</td>
    <td class="noWrapTD">登录名</td>
    <td class="noWrapTD">真实姓名</td>
    <td class="noWrapTD">电话</td>
    <td class="noWrapTD">邮箱</td>
     <td class="noWrapTD">类型</td>
      <td class="noWrapTD">所属学校</td>
       <td class="noWrapTD">创建时间</td>
       <td class="noWrapTD">状态</td>
    </tr>
      <asp:Repeater ID="rptCoursewareList" runat="server" >
        <ItemTemplate>
        <tr class="<%# Container.ItemIndex%2==1?"odd":"" %>">
        <td class="ta2"><asp:LinkButton CssClass="button2" ID="btnUpdate" runat="server" CommandArgument='<%#Eval("ID")%>' OnCommand="btnUpdate_Click" Text="修改信息"></asp:LinkButton></td>
         <td class="ta2"><%#Eval("VA_loginname")%>&nbsp;</td>
          <td class="ta2"><%#Eval("VA_realname")%>&nbsp;</td>
            <td class="ta2"><%#Eval("VA_mobile")%>&nbsp;</td>
             <td class="ta2"><%#Eval("VA_email")%>&nbsp;</td>
              <td class="ta2">
                             <%# GetTypeByID(Convert.ToInt32(Eval("VA_type")))%>&nbsp;</td>
                                
                                 <td class="ta2">
                              <%# GetSchNameByID((int)Eval("SchoolID"))%>&nbsp;</td>
                              <td class="ta2"><%#Eval("Create_time")%>&nbsp;</td> 
                               <td class="ta2"><%# Convert.ToInt32(Eval("VA_IsEnable")) == 0 ? "<font color=red>未启用</font>" : "<font color=green>已启用"%>&nbsp;</td>
                               
        </tr>
        </ItemTemplate>
        </asp:Repeater>
</table>
   <webdiyer:AspNetPager ID="pager" runat="server"  onpagechanged="pager_PageChanged"  CssClass="anpager" CurrentPageButtonClass="cpb"   PageSize="20">
            </webdiyer:AspNetPager>
    </div>
    </form>
</body>
</html>
